import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { sha256 } from 'js-sha256'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './plugin/axios.js'
import moment from 'moment'
Vue.config.productionTip = false
Vue.prototype.$sha256 = sha256
Vue.use(ElementUI)
/**
 * @param {Object} value 时间拦截器
 */
Vue.filter('capitalize', function (value) {
  if (!value) return ''
  return moment(value).format('yyyy-MM-dd HH:mm:ss')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
